Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

embed-plugin-utilities

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embed-plugin-utilities

Utility functions to create embed-js plugins.

  • 5.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
197
decreased by-37.85%
Maintainers
1
Weekly downloads
 
Created
Source

embed-plugin-utilities

A collection of utilities that can be used to make a plugin.

Installation

npm i -S embed-js embed-plugin-utilities

CDN

https://unpkg.com/embed-plugin-utilities

Methods

Method NameArgumentsDescription
insert(options, pluginOptions)It modifies the string by replacing or adding the template based on the provided options. Returns the modified options object.
withDetailsTemplate({url, title, embedUrl, description, thumbnail}, thumbClassName)This method returns a tempate with description and thumb image. embedUrl and thumbClassName is optional. Others are mandatory.
withoutDetailsTemplate(embedUrl, height, name)Returns a simple embeddable iframe.
jsonp(url)Makes a JSONP request on client side and normal get request on the server side.
getQuery(paramObject)Converts an object of query params into & separated string.

License

MIT @ Ritesh Kumar

FAQs

Package last updated on 17 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc